<template>
  <div class="bigbox">
    <router-view> </router-view>
    <van-tabbar v-model="active" route v-if="$route.meta.showTab">
      <van-tabbar-item to="/home" name="home" icon="home-o"
        >首页</van-tabbar-item
      >
      <van-tabbar-item to="/qa" name="search" icon="chat-o"
        >问答</van-tabbar-item
      >
      <van-tabbar-item to="/movie" name="friends" icon="video-o"
        >视频
      </van-tabbar-item>
      <van-tabbar-item to="/user" name="setting" icon="user-o"
        >用户</van-tabbar-item
      >
    </van-tabbar>
    <!-- 测试amfe-flexible -->
  </div>
</template>

<script>
export default {
  name: 'app',
  data () {
    return {
      active: 0
    }
  }
}
</script>

<style scoped>
/* 测试amfe-flexible是否导入成功 */
</style>
